-- msg_dungeon_result
-- Created by chengb Nov/4/2015
-- 通知玩家通关结果

return function(lpc)
    local dungeonId = lpc.dungeon_id;
    local layer     = lpc.layer;
    local score     = lpc.score;
    local extra     = lpc.extra;

    -- 获取击败的玩家百分比和冠军的国籍
    local defeatPercent  = extra.defeat_percent;
    local championNation = extra.champion_nation;

    -- 抛出事件
    EventMgr.fire(event.RECV_DUNGEON_RESULT, {
        ["dungeonId"]     = dungeonId,
        ["layer"]         = layer,
        ["score"]         = score,
        ["defeatPercent"] = defeatPercent,
        ["championNation"]= championNation,
    });
end